//
//  HLBalanceRequest.m
//  YueYue
//
//  Created by hulu001 on 2023/5/19.
//

#import "HLBalanceRequest.h"

@implementation HLBalanceRequest

- (NSString *)requestUrl
{
    return @"/user/balance";
}

- (YTKRequestMethod)requestMethod
{
    return YTKRequestMethodGET;
}

- (HLBalanceModel *)balance
{
    HLBalanceModel *balance;
    
    NSDictionary *data = [self.result valueForKey:@"data"];
    if (![data isKindOfClass:[NSDictionary class]]){
        return balance;
    }
    balance = [HLBalanceModel mj_objectWithKeyValues:data];
    

    return balance;
}

@end
